package chapter13.Z2;

import java.util.Scanner;

public class Str2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入作业名：");
        String name = sc.next();
        if (name.endsWith("zip")||name.endsWith("rar")){
            System.out.println("合适");
        }else {
            System.out.println("不合适");
        }
    }
}
